package cate.common.table.rank.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;

public class RankBaseRow extends ERow {
    public int funcId;

    public boolean canAdmire;

    public boolean canGetReward;

    public boolean enter;

    public byte type;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.funcId = xrw.getInteger("功能ID", 0);
        this.canAdmire = xrw.getBoolean("是否可以点赞", false);
        this.canGetReward = xrw.getBoolean("是否可以领取", false);
        this.enter = xrw.getBoolean("是否进入排行榜功能", false);
        this.type = xrw.getByte("榜单类型", (byte) 0);
    }

    public static final byte GAME = 0;
    public static final byte CROSS = 1;
}
